home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / var / db / pkg / sys-devel / autoconf-2.13 / autoconf-2.13.ebuild < prev    next >
Encoding:
Text File  |  2005-10-13  |  1.5 KB  |  61 lines

  1. # Copyright 1999-2005 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf/autoconf-2.13.ebuild,v 1.13 2005/03/13 04:40:15 vapier Exp $
  4.  
  5. inherit eutils
  6.  
  7. DESCRIPTION="Used to create autoconfiguration files"
  8. HOMEPAGE="http://www.gnu.org/software/autoconf/autoconf.html"
  9. SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
  10.  
  11. LICENSE="GPL-2"
  12. SLOT="${PV:0:3}"
  13. KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~ppc-macos"
  14. IUSE=""
  15.  
  16. DEPEND=">=sys-apps/texinfo-4.3
  17.     sys-devel/autoconf-wrapper
  18.     =sys-devel/m4-1.4*
  19.     dev-lang/perl"
  20.  
  21. src_unpack() {
  22.     unpack ${A}
  23.     cd ${S}
  24.     epatch ${FILESDIR}/${P}-gentoo.patch
  25.     epatch ${FILESDIR}/${P}-destdir.patch
  26.     touch configure # make sure configure is newer than configure.in
  27.  
  28.     rm -f standards.{texi,info} # binutils installs this infopage
  29.  
  30.     sed -i \
  31.         -e 's|\* Autoconf:|\* Autoconf v2.1:|' \
  32.         -e '/START-INFO-DIR-ENTRY/ i INFO-DIR-SECTION GNU programming tools' \
  33.         autoconf.texi \
  34.         || die "sed failed"
  35. }
  36.  
  37. src_compile() {
  38.     # need to include --exec-prefix and --bindir or our
  39.     # DESTDIR patch will trigger sandbox hate :(
  40.     econf \
  41.         --exec-prefix=/usr \
  42.         --bindir=/usr/bin \
  43.         --program-suffix="-${PV}" \
  44.         || die
  45.     emake || die
  46. }
  47.  
  48. src_install() {
  49.     make install DESTDIR="${D}" || die
  50.  
  51.     dodoc AUTHORS NEWS README TODO \
  52.         ChangeLog ChangeLog.0 ChangeLog.1
  53.  
  54.     mv "${D}"/usr/share/info/autoconf{,-${PV}}.info
  55. }
  56.  
  57. pkg_postinst() {
  58.     einfo "Please note that the 'WANT_AUTOCONF_2_1=1' syntax is now:"
  59.     einfo "  WANT_AUTOCONF=2.1"
  60. }
  61.